﻿using System.Collections.ObjectModel;

namespace HandyControlPractice
{
    public class TreeNode : NotifyPropertyChangedBaseClass
    {
        private bool isChecked;
        public bool IsChecked
        {
            get => isChecked;
            set
            {
                if (isChecked != value)
                {
                    this.isChecked = value;
                    OnPropertyChanged();
                }
              
            }
        }

        private string name;
        public string Name
        {
            get => name;
            set
            {
                name = value;
                OnPropertyChanged();
            }
        }

        private ObservableCollection<TreeNode> children;
        public ObservableCollection<TreeNode> Children
        {
            get => children;
            set
            {
                children = value;
                OnPropertyChanged();
            }
        }

    }
   
}
